package com.yf.zzmusic.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 专辑记录表
 * </p>
 *
 * @author
 * @since 2024-03-18
 */
@Getter
@Setter
@TableName("album_record")
public class AlbumRecord implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 专辑记录唯一id
   */
  @TableId(value = "album_record_id", type = IdType.AUTO)
  private Integer albumRecordId;

  /**
   * 音乐id
   */
  @NotNull(message = "音乐id不能为空")
  private Integer musicId;

  /**
   * 专辑id
   */
  @NotNull(message = "专辑id不能为空")
  private Integer albumId;

  /**
   * 创建时间
   */
  private LocalDateTime createTime;


}
